import request from '@/utils/request'
export function winelist(data) {
  return request({
    url: '/system/wine/list',
    method: 'get',
    params:{...data}
  })
}
export function addWine(data) {
  return request({
    url: '/system/wine/add',
    method: 'post',
    data
  })
}
export function wineByw(name) {
  return request({
    url: '/system/wine/WineByKey',
    method: 'get',
    params:{name}
  })
}
export function deleteWine(id) {
  return request({
    url: '/system/wine/delete',
    method: 'post',
    params:{wineId:id}
  })
}
export function updateWine(data) {
  return request({
    url: '/system/wine/update',
    method: 'post',
    data
  })
}